package bdd.exemple;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

import java.net.URL;
 
class RemoteTest {
 
  public static void main(String[] args) throws Exception {
    // Change this to match the location of your server
    URL server = new URL("http://192.168.1.17:4444/wd/hub");
    DesiredCapabilities capabilities = new DesiredCapabilities();
    
    capabilities.setBrowserName("firefox");
   // capabilities.setCapability("ignoreProtectedModeSettings", true);
 
    System.out.println("Connecting to " + server);
 
    WebDriver driver = new RemoteWebDriver(server, capabilities);
 
    driver.get("http://www.youporn.com");
 
    Thread.sleep(10000);
    
    driver.quit();
  }
}
